package com.zxl.state.example;
/*
 * ����
 * 
 */
public class Work {
	//
	private State current;
	private double hour;
	//����״̬���Ƿ��°������
	private boolean finish = false;
	
	/**
	 * ���ÿ�ʼ״̬
	 */
	public Work(){
		this.current = new ForenoonState();
	}
	/**
	 * 
	 * 
	 * zxl
	 * 2016��7��25�� ����4:07:30
	 * void
	 */
	/////////////////////////////�ؼ�////////////////
	public void writeProgram(){
		this.current.writeProgram(this);
	}
	/////////////////////////////�ؼ�////////////////
	
	
	public State getCurrent() {
		return current;
	}


	public void setCurrent(State current) {
		this.current = current;
	}


	public double getHour() {
		return hour;
	}


	public void setHour(double hour) {
		this.hour = hour;
	}


	public boolean isFinish() {
		return finish;
	}


	public void setFinish(boolean finish) {
		this.finish = finish;
	}
	
	
	
	
}
